<ion-modal-view>
  <ion-header-bar>
    <h1 class="title">设备列表</h1>
    <button class="button button-clear" ng-click="closeDevice()">关闭</button>
  </ion-header-bar>
  <ion-content>
    <!--<form ng-submit="selectedDevice()">-->
      <div class="list">
        <label class="item item-input">
          <input type="search" placeholder="设备查询..." ng-model="search">
          <!--<button ng-if="search.length"-->
                  <!--class="button button-icon ion-android-close input-button"-->
                  <!--ng-click="clearSearch()">-->
          <!--</button>-->
          <!--<select ng-model="deviceData.dv" ng-options="dv.name for dv in devices">-->
            <!--<option value=""></option>-->
          <!--</select>-->
        </label>
        <a class="item" ng-click="clearSearch(item)"
           collection-repeat="item in devices | orderBy:'name' | searchDevices:search"
           collection-item-width="'100%'">
          {{item.name}}
        </a>
        
      </div>
    <!--</form>-->
  </ion-content>
</ion-modal-view>